<div class="content">
	<div class="ibox">
        <div class="ibox-title">
            <h5>团队详情</h5>
        </div>
        <div class="ibox-content">
	        <button type="button" class="btn btn-sm btn-primary m-t-n-xs" ng-click="vm.back()">返回</button>
        	<div class="m-b-md col-md-12 text-center">
        		<h1 class="font-bold m-b">{{$state.params.team_name}}</h1>
				<div class="mod-date">
                    <ul class="mod-data-tabs">
						<li>
							<span class="count">{{vm.teamInfo.teamRank}}</span>
							<span class="meta">团队排名</span>
						</li>
						<li>
							<span class="count">{{vm.teamInfo.teamScore}}</span>
							<span class="meta">团队成绩</span>
						</li>
                    </ul>
                </div>
			</div>
			<!-- 非绕圈的场合 -->
            <table class="table table-striped table-bordered table-hover margin-top-20" ng-if="vm.teamInfo.scores.length>0&&!vm.circle">
	            <thead>
	                <tr>
	                    <th class="text-center">选手号</th>
	                    <th class="text-center">姓名</th>
	                    <th class="text-center">性别</th>
	                    <th class="text-center">科目</th>
	                    <th class="text-center">计时点</th>
	                    <th class="text-center">到达时间</th>
	                    <th class="text-center">分段成绩</th>
	                    <th class="text-center">净成绩</th>
	                    <th class="text-center">枪声成绩</th>
	                </tr>
	            </thead>
	            <tbody>
	                <tr ng-repeat="runner in vm.teamInfo.scores" ui-sref="dashboard.race.realtimerunner({course_id: $state.params.course_id, runner_id: runner.runnerId})">
	                    <td class="text-center">{{runner.bib}}</td>
	                    <td class="text-center">{{runner.runnerName}}</td>
	                    <td class="text-center">
	                    	<span ng-if="runner.runnerGender == 'male'">男</span>
	                    	<span ng-if="runner.runnerGender == 'female'">女</span>
	                    	<span ng-if="!runner.runnerGender || runner.runnerGender == 'unknown'">未知</span>
	                    </td>
	                    <td class="text-center">{{runner.courseName}}</td>
	                    <td class="text-center">{{runner.cpName}}</td>
	                    <td class="text-center">{{runner.passTime}}</td>
	                    <td class="text-center">{{runner.splitTime}}</td>
	                    <td class="text-center">{{runner.totalTime}}</td>
	                    <td class="text-center">{{runner.gunTime}}</td>
	                </tr>
	            </tbody>
	        </table>
	        <!-- 绕圈的场合 -->
            <table class="table table-striped table-bordered table-hover margin-top-20" ng-if="vm.teamInfo.scores.length>0&&vm.circle">
	            <thead>
	                <tr>
	                    <th class="text-center">选手号</th>
	                    <th class="text-center">选手姓名</th>
	                    <th class="text-center">性别</th>
	                    <th class="text-center">圈数</th>
	                    <th class="text-center">总成绩</th>
	                </tr>
	            </thead>
	            <tbody>
	                <tr ng-repeat="runner in vm.teamInfo.scores" ui-sref="dashboard.race.realtimerunner({course_id: $state.params.course_id, runner_id: runner.runnerId})">
	                    <td class="text-center">{{runner.bib}}</td>
	                    <td class="text-center">{{runner.runnerName}}</td>
	                    <td class="text-center">
	                    	<span ng-if="runner.runnerGender == 'male'">男</span>
	                    	<span ng-if="runner.runnerGender == 'female'">女</span>
	                    	<span ng-if="!runner.runnerGender || runner.runnerGender == 'unknown'">未知</span>
	                    </td>
	                    <td class="text-center">{{runner.nums}}</td>
	                    <td class="text-center">{{runner.totalTime}}</td>
	                </tr>
	            </tbody>
	        </table>
	        <p class="text-center margin-top-20" ng-if="vm.teamInfo.scores.length==0">
	            暂无数据。
	        </p>
        </div>
    </div>
</div>